define(["knockout", "durandal/app", 'durandal/system', "app-main/modules/active-model-3/index"], function(ko, app, system, mod3) {
	var activateViewData = {
		mod1: 'app-main/modules/active-model-1/index',
		mod2: 'app-main/modules/active-model-2/index',
		mod3: mod3,
		mod4: 'app-main/modules/active-model-4/index',
		mod5: 'app-main/modules/active-model-5/index',
		mod6: 'app-main/modules/active-model-6/index',
	}

	var activateView = ko.observable(activateViewData.mod1);

	var changeModel = function(val) {
		activateView(activateViewData['mod' + val]);
	}

	return {
		activeView: activateView,
		changeModel: changeModel,
		activate: function() {
			system.log('test5 is activate');
		},
		binding: function(child, parent, settings) {
			system.log('test5 is binding');
		},
		bindingComplete: function() {
			system.log('test5 is bindingComplete');
		},
		attached: function(child, parent, settings) {
			system.log('test5 is attached');
		},
		compositionComplete: function(child, parent, settings) {
			system.log('test5 is compositionComplete');
		},
		detached: function() {
			system.log('test5 is detached');
		}
	};
});